﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using FutureApp.Users;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace FutureApp.Orders
{
    /// <summary>
    /// 分期表
    /// </summary>
    [Table("Stage")]
    public class Stage : FullAuditedEntity<Guid, User>, IPassivable
    {
        /// <summary>
        /// 期数
        /// </summary>
        public virtual int? Num { get; set; }
        /// <summary>
        /// 开始金额
        /// </summary>
        [Required]
        public virtual double BeginPrice { get; set; }
        /// <summary>
        /// 结束金额
        /// </summary>
        [Required]
        public virtual double EndPrice { get; set; }
        /// <summary>
        /// 利息
        /// </summary>
        [Required]
        public virtual double AddPrice { get; set; }
        /// <summary>
        /// 激活/禁用
        /// </summary>
        [Required]
        public virtual bool IsActive { get; set; } = true;


    }
}
